﻿@{
    ViewBag.Title = UcAsp.Net.BLL.SettingConfig.GetSiteSetting.SiteName;
  
}
@using UcAsp.Net.Model;
@using UcAsp.Net.BLL;
@using UcAsp.Net.Comm
@using Config = UcAsp.Net.BLL.SettingConfig;
@model List<UcAsp.Net.Model.Articles>
<div class="outborder">
    @(new HtmlString(AdvConfig.GetAdvPositions("AD1", Config.Theme(Request.UserAgent)).AdvHtml))
</div>
<div class="outborder">
    @(new HtmlString(AdvConfig.GetAdvPositions("AD2", Config.Theme(Request.UserAgent)).AdvHtml))
</div>
@(new HtmlString(AdvConfig.GetAdvPositions("AD3", Config.Theme(Request.UserAgent)).AdvHtml))
@(new HtmlString(AdvConfig.GetAdvPositions("AD4", Config.Theme(Request.UserAgent)).AdvHtml))
@(new HtmlString(AdvConfig.GetAdvPositions("AD5", Config.Theme(Request.UserAgent)).AdvHtml))
@(new HtmlString(AdvConfig.GetAdvPositions("AD6", Config.Theme(Request.UserAgent)).AdvHtml))
@(new HtmlString(AdvConfig.GetAdvPositions("AD7", Config.Theme(Request.UserAgent)).AdvHtml))
<div class="container-fluid">
    @foreach (ArticelsViews art in ArticlesBLL.GetSubject(1, Config.Theme(Request.UserAgent)))
    {
        <div class="kecheng span7">

            <div class="row-fluid">
                <a href="/@art.CagegorieShowPath/@if (string.IsNullOrEmpty(art.ShowPath))
                                                 {@art.ID<text>.shtml</text>}
                                                 else
                                                 {@art.ShowPath<text>.shtml</text>}">
                    <img src="@art.IconUrl" border="0" alt="@art.Title" />
                </a>
            </div>
            <div class="row-fluid">
                <a href="/@art.CagegorieShowPath/@if (string.IsNullOrEmpty(art.ShowPath))
                                                 {@art.ID<text>.shtml</text>}
                                                 else
                                                 {@art.ShowPath<text>.shtml</text>}">
                    @art.Title<br />
                    @(new HtmlString(UcAsp.Net.Comm.Utils.ClearPart(UcAsp.Net.Comm.Utils.RemoveHtml(art.ArticleContent), 100)))
                </a>
            </div>

        </div>
    }
</div>
<div class="container-fluid best_teacher">
    @foreach (ArticelsViews art in ArticlesBLL.GetSubject(2, Config.Theme(Request.UserAgent)))
    {
        <div class="teacher row-fluid">
            <div class="span3">
                <a href="/@art.CagegorieShowPath/@if (string.IsNullOrEmpty(art.ShowPath))
                                                 {@art.ID<text>.shtml</text>}
                                                 else
                                                 {@art.ShowPath<text>.shtml</text>}">
                    <img src="@art.IconUrl" border="0" alt="@art.Title" />

                    <div class="teacher_name" style="text-align: center">
                        @(UcAsp.Net.Comm.Utils.RemoveHtml(art.Title)) 老师
                    </div>

                </a>
            </div>
            <div class="span9">
                <div class="teacher_content" style="text-align: left">
                    @(UcAsp.Net.Comm.Utils.ClearPart(UcAsp.Net.Comm.Utils.RemoveHtml(art.ArticleContent), 100))
                </div>
            </div>
        </div>
    }
</div>

